import {
	defineStore
} from 'pinia'
import {
	ref
} from 'vue';
export const useLoginStore = defineStore('loginState', () => {
	// const count = ref(0);
	const isLogin = ref(false)
	const tokenInfo = ref({
		token: "",
		refresh_token: "",
		right: ""
	})

	function changeState() {
		isLogin.value = !isLogin.value;
	}

	return {
		isLogin,
		changeState,
		tokenInfo
	};
} );